from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'ghose.views.home', name='home'),
    # url(r'^ghose/', include('ghose.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    url(r'^grocery/$', 'grocery.views.index'),
    url(r'^grocery/add/$', 'grocery.views.add'),
    url(r'^grocery/new_add/$', 'grocery.views.inadd'),
    url(r'^grocery/(?P<item>[^/]+)/detail/$', 'grocery.views.detail'),
    url(r'^grocery/(?P<store>[^/]+)/bystore/$', 'grocery.views.bystore'),
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
